<?php
if(!defined('InEmpireCMS'))
{
	exit();
}

?>
<?php
$url="<a href=../../../>首页</a>&nbsp;>&nbsp;<a href=../sp/>我的空间</a>";
require(ECMS_PATH.'e/data/template/cp_1.php');
?>
<style>
#header{ background:url(../../../skin/default/pic/header_bg4.jpg) repeat-x 0px 0px;}

#mainborder{background:url(../../../skin/default/pic/header_bg4.jpg) repeat-x 0px -200px;}

</style>
<div id="midcontent">
<input type="hidden" id="user_id" value="<?=$user_id?>" />
 <script language="javascript" type="text/javascript" src="<?=$public_r['newsurl']?>/skin/default/js/page-cp.js"></script>
 <input type="hidden" value="<?=$user_name?>" id="username"/>
 <input type="hidden" value="<?=$is_my?1:0?>" id="is_my"/>

      <div class="spaceinfo">
        <p><b><?=$r[nickname]?></b> <a href="#"><?=$public_r['newsurl']?>e/member/sp/?uid=<?=$user_id?></a> [<a href="javascript:copyToClipboard('<?=$public_r['newsurl']?>e/member/sp/?uid=<?=$user_id?>')">复制</a>] </p>

        <p><a href="<?=$public_r[newsurl]?>e/member/followMe/?uid=<?=$user_id?>">被<?=($r['focus_num'])?>人关注</a></p>
        <p><a href="<?=$public_r[newsurl]?>e/member/userNews/list/?uid=<?=$user_id?>">直播<?=$r['live_num']?>条</a>，<a href="#">话题<?=$r['topic_num']?>个</a>，<a href="<?=$public_r[newsurl]?>e/active/list/?uid=<?=$user_id?>">活动<?=$r['act_num']?>个</a>，<a href="#">照片<?=$r['focus_num']?>张</a></p>
      </div>
      <div class="member" style="display:none;"><b>个人资料</b>  北京市　男　生日：1970-01-01　积分：188 一级会员 </div>
      <div class="tag"><?php if($is_my){?><b class="r" onclick="setMyTags();">标签设置</b><?php }?><b>标签</b><span><?=$r[tags]?></span></div>

      <div id="settag">
        <p>设置一下个性标签吧，让更多驴友认识你！</p>
        <ul>
		<li><input type="checkbox" class="checkbox" value='登山'>登山</li>
		<li><input type="checkbox" class="checkbox" value='攀岩'>攀岩</li>
		<li><input type="checkbox" class="checkbox" value='徒步'>徒步</li>
		<li><input type="checkbox" class="checkbox" value='野营'>野营</li>
		<li><input type="checkbox" class="checkbox" value='穿越'>穿越</li>
		<li><input type="checkbox" class="checkbox" value='骑行'>骑行</li>
		<li><input type="checkbox" class="checkbox" value='自驾'>自驾</li>
		<li><input type="checkbox" class="checkbox" value='滑雪'>滑雪</li>
		<li><input type="checkbox" class="checkbox" value='背包旅行'>背包旅行</li>
		<li><input type="checkbox" class="checkbox" value='摄影'>摄影</li>
		<li><input type="checkbox" class="checkbox" value='垂钓'>垂钓</li>
		<li><input type="checkbox" class="checkbox" value='漂流'>漂流</li>
		<li><input type="checkbox" class="checkbox" value='溯溪'>溯溪</li>
		<li><input type="checkbox" class="checkbox" value='冲浪'>冲浪</li>
		<li><input type="checkbox" class="checkbox" value='潜水'>潜水</li>
		<li><input type="checkbox" class="checkbox" value='滑翔伞'>滑翔伞</li>
		<li><input type="checkbox" class="checkbox" value='探险'>探险</li>
		<li><input type="checkbox" class="checkbox" value='户外休闲'>户外休闲</li>
		<li><input type="checkbox" class="checkbox" value='环保公益'>环保公益</li>
		<li><input type="checkbox" class="checkbox" value='户外体育'>户外体育</li>
		<li><input type="checkbox" class="checkbox" value='聚会'>聚会</li>
		<li><input type="checkbox" class="checkbox" value='线上活动'>线上活动</li>
        </ul>
        <div class="btn"><input type="button" value="提交"><input type="button" value="取消"></div>
      </div>
	  <?php if($is_my){?>
      <div class="content">
      <div class="title"><b>直播</b><a href="#">添加足迹</a><a href="#">上传照片</a><a href="#">发起投票</a><a href="#">写游记</a><a href="#">发布活动</a></div>

      <div class="body">
        <div class="message">
          <p>可以输入<span class="wordlimit" style="line-height:16px;font-size:16px;color:green;">140</span>文字</p>
          <textarea cols="10" rows="6" class="textarea" onkeyup='setWordLimit();' style="line-height:18px;color:#000;font-size:16px;"></textarea>
          <p class="btn"><input type="button" class="livebtn" onclick="setMyOnLineSay();"></p>
        </div>
      </div>
      <div class="bottom"></div>

     </div>
	 <?php }?>
     <div class="content">
      <div class="title news"><select><option>全部动态</option></select><a href="javascript:listUserNews('news_1');" class='active' id="news_1" type_id=""><?php if($is_my){?>我关注<?php }else{?>TA<?php }?>的动态</a><a href="javascript:listUserNews('news_2');"  id="news_2" type_id="1"><?php if($is_my){?>我关注<?php }else{?>TA<?php }?>的直播</a></div>
      <div class="body">
        <div id="commentlist">
          <ul>
           
          </ul>
        </div>
      </div>
      <div class="bottom"></div>
     </div>
       
   </div>
   <div id="rightcontent">
     <div class="hand"><a href="<?=$public_r['newsurl']?>e/active/create/"><img title="" alt="" src="<?=$public_r['newsurl']?>skin/default/pic/hand3.jpg"></a></div>
     <div class="search"><input type="text" class="searchtxt"><input type="button" class="searchbtn" value="搜索驴友"></div>
      <div class="content">
       <div class="title"><a class="more" href="#">+更多</a><h3>来访</h3></div>
       <div class="body">
         <ul class="part">
		 <?php 
		 if($userTrack){
		 foreach($userTrack as $k=>$v){			 
				$uURL=$public_r['newsurl']."e/member/sp/?uid=".$v['uid'];
			 ?>
            <li>

             <a href="<?=$uURL?>"><img title="" alt="<?=$v['nickname']?>" src="<?=getUserHead($v['userpic'],69,69)?>"></a>
             <a href="<?=$uURL?>"><?=$v['nickname']?></a>
            </li>
		<?php }
		}else{
			 ?>
		<li><div class='no-data'>暂无脚印</div></li>
		<?php }?>            
         </ul>

       </div>
       <div class="bottom"></div>
     </div>
     <div class="content">
       <div class="title"><a class="more" href="../followMe/?uid=<?=$user_id?>">+更多</a><h3><?php if($is_my){?>我<?php }else{?>TA<?php }?>的粉丝</h3></div>
       <div class="body">
         <ul class="part">
		<?php 
		if($arrFocus){
		foreach($arrFocus as $kf=>$vf){
				$ui=getUserInfo($vf['uid']);
			?>
            <li>
             <a href="./?uid=<?=$vf['uid']?>"><img title="<?=$ui['nickname']?>" alt="<?=$ui['nickname']?>" src="<?=getUserHead($ui['userpic'],69,69)?>"></a>
             <a href="./?uid=<?=$vf['uid']?>"><?=$ui['nickname']?></a>
            </li>
		<?php }
	   }else{
			?>
			<div class="no-data">还没有人关注<?php if($is_my){?>您！<?php }else{?>TA!<?php }?></div>
		<?php }?>
         </ul>

       </div>
       <div class="bottom"></div>
     </div>
     <div class="content" style="display:none;">
       <div class="title"><a class="more" href="#">+更多</a><h3>国内最新话题</h3></div>
       <div class="body">
         <ul class="news">
            <li><a href="#">游泳圈新人报道贴</a></li>

            <li><a href="#">建议在韩队无法带队的情况下</a></li>
            <li><a href="#">攀爬野长城，保护还是伤害？</a></li>
            <li><a href="#">搞个活动吧 都加入了 就是没有...</a></li>
            <li><a href="#">【我爱长城】之北京地区长城...</a></li>  
            <li><a href="#">新驴老驴报道专用贴-----来说...</a></li>
            <li><a href="#">俺近期习惯给人推荐的单</a></li>

            <li><a href="#">定风波 风雪游陈家堡长...</a></li>
            <li><a href="#">2011春季纯粹户外AA活动...</a></li>         
            <li><a href="#">好久没来了</a></li>
         </ul>
       </div>
       <div class="bottom"></div>
     </div>
     <div class="content">

       <div class="title"><a class="more" href="<?=$public_r['newsurl']?>/act">+更多</a><h3>精彩回顾</h3></div>
       <div class="body">
	   <?php if($review){
		   foreach($review as $k=>$v){
			   $u=getUserInfo($v['userid']);
		   ?>
         <dl class="dl">
            <dd><a href="<?=$public_r['newsurl']?>act/myactive/<?php echo $v[newspath];?>/<?php echo $v[id];?>.html"><img title="" alt="" src="<?=$v['active_cover']?>"></a></dd>
            <dt><a href="<?=$public_r['newsurl']?>act/myactive/<?php echo $v[newspath];?>/<?php echo $v[id];?>.html"><?=$v['title']?></a></dt>
            <dd>
               <p>发 起 人：<a href="<?=$public_r['newsurl']?>e/member/uid=<?=$v['userid']?>"><?=$v['adduser']?></a></p>

               <p>活动地点：<?=$v['address']?></p>
               <p>活动分类：<?=$v['active_type']?></p>
               <p>活动时间：<?=$v['start_time']?></p>
               <p>关注程度：<?=$v['onclick']?>人感兴趣</p>
            </dd>
         </dl>
		<?php
		   }   
			   }else{?>
		<div class='no-data'>暂无数据！</div>
		<?php }?>
       </div>

       <div class="bottom"></div>
     </div>
   </div>
<?php
require(ECMS_PATH.'e/data/template/cp_2.php');
?>